package com.hfkh.cn.clone;

public class DengYuEquals {
   public static void main(String[] args) {
	  String s1 = "123";
	  String s2 = new String("123");
	  String s3 = new String("123");
	  System.out.println(s1==s2);
	  System.out.println(s1==s3);
	  System.out.println(s2==s3);
	  System.out.println(s1.equals(s2));
	  System.out.println(s1.equals(s3));
	  System.out.println(s2.equals(s3));
}
}
